using System;
using System.Collections;
using System.Collections.Generic;
using FrameDesign.Example1.Scripts;
using FrameDesign.Example1.Scripts.Command;
using FrameDesign.FrameWork;
using FrameDesign.FrameWork.Rule;
using FrameWorkDesign.Example.Event;
using Model;
using UnityEngine;

namespace FrameWorkDesign.Example
{
    public class Enemy : MonoBehaviour,IController
    {
        /// <summary>
        /// 点击自己则销毁
        /// </summary>
        private void OnMouseDown()
        {
            gameObject.SetActive(false);
            
            this.SendCommand<KillEnemyCommand>();
        }

        IArchitecture IBelongToArchitecture.GetArchitecture()
        {
            return PointGame.Interface;
        }
    }

}
